package cn.wizzer.app.user.modules.models.vo;

import cn.wizzer.app.user.modules.models.UserWithdraw;
import cn.wizzer.app.user.modules.models.enums.WithdrawStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class UserWithdrawVO extends UserWithdraw implements Serializable {

    private String nickName;

    private String userName;

    private String phone;

    private String currencyName;

    private List steps;

    private Boolean cashEnableOne;

    // 银行卡类型：普通银行卡、UPI
    private String type;

    /**
     * 提现币种汇率
     */
    private BigDecimal rate;

    public static WithdrawStep createStep() {
        return new WithdrawStep();
    }

    static
    public class WithdrawStep implements Serializable {

        private WithdrawStatusEnum status;

        private Long at;

        public WithdrawStep() {

        }

        public WithdrawStatusEnum getStatus() {
            return status;
        }

        public UserWithdrawVO.WithdrawStep setStatus(WithdrawStatusEnum status) {
            this.status = status;
            return this;
        }

        public Long getAt() {
            return at;
        }

        public UserWithdrawVO.WithdrawStep setAt(Long at) {
            this.at = at;
            return this;
        }
    }

}
